import {createRouter,createWebHistory} from "vue-router";

const YiBiaoPang = ()=>import("@/view/yibiaopang/YiBiaoPang")
const TeacherManage = ()=>import("@/view/common_settings/Index1-1")
const Index1_2 =()=>import("@/view/common_settings/Index1-2");
const Index1_3 =()=>import("@/view/common_settings/Index1-3");
const Index1_4 =()=>import("@/view/common_settings/Index1-4");
const Index1_5 =()=>import("@/view/common_settings/Index1-5");
const Index2_1 =()=>import("@/view/problem/Index2-1");
const Index2_2 =()=>import("@/view/problem/Index2-2");
const Index2_3 =()=>import("@/view/problem/Index2-3");
const Index3_1 =()=>import("@/view/match_practice/Index3-1");
const Index3_2 =()=>import("@/view/match_practice/Index3-2");
const Index4_1 =()=>import("@/view/curriculum/Index4-1");
const Index4_2 =()=>import("@/view/curriculum/Index4-2");



const routes = [
  {
    path:'',
    redirect:"/yiBiaoPang"
  },
  {
    path: '/yiBiaoPang',
    name:'YiBiaoPang',
    component:YiBiaoPang
  },
  {
    path: '/teacherManage',
    name:'TeacherManage',
    component:TeacherManage
  },
  {
    path: '/index1-2',
    name: 'index1-2',
    component:Index1_2
  },
  {
    path: '/index1-3',
    name: 'index1-3',
    component:Index1_3
  },
  {
    path: '/index1-4',
    name: 'index1-4',
    component:Index1_4
  },
  {
    path: '/index1-5',
    name: 'index1-5',
    component:Index1_5
  },
  {
    path: '/index2-1',
    name: 'index2-1',
    component:Index2_1
  },
  {
    path: '/index2-2',
    name: 'index2-2',
    component:Index2_2
  },
  {
    path: '/index2-3',
    name: 'index2-3',
    component:Index2_3
  },  {
    path: '/index3-1',
    name: 'index3-1',
    component:Index3_1
  },
  {
    path: '/index3-2',
    name: 'index3-2',
    component:Index3_2
  },
  {
    path: '/index4-1',
    name: 'index4-1',
    component:Index4_1
  },
  {
    path: '/index4-2',
    name: 'index4-2',
    component:Index4_2
  },

]

const router = createRouter({
  history:createWebHistory(process.env.BASE_URL),
  routes,
})

export default router

